package com.updesignsz.admin.vo.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


@NoArgsConstructor
@AllArgsConstructor
@Data
public class BannerForm {

    @NotNull(message = "Id不能为空", groups = PutMapping.class)
    private Integer id;

    @NotNull(message = "横幅图片类型不能为空", groups = {PutMapping.class, PostMapping.class})
    private Integer type;

    @NotNull(message = "关联项目ID不能为空", groups = {PutMapping.class, PostMapping.class})
    private Integer projectId;

//    @NotBlank(message = "横幅图片不能为空", groups = {PutMapping.class, PostMapping.class})
//    private String image;

}
